import 'package:flutter/material.dart';
import 'package:flutter_ume/common/component_index.dart';

class AccountInforPage extends StatefulWidget {
  @override
  _AccountInforPageState createState() => _AccountInforPageState();
}

class _AccountInforPageState extends State<AccountInforPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: _titleWidget(),
    );
  }

  Widget _titleWidget() {
    return PreferredSize(
        child: AppBar(
            title: Text(
              '登录',
              style: TextStyles.titleTextStyle,
            ),
            backgroundColor: Colours.white,
            centerTitle: true,
            leading: GestureDetector(
              onTap: () => Navigator.pop(context),
              child: Container(
                child: Image.asset(
                  Utils.getImgPath('icon_left'),
                ),
                padding: EdgeInsets.fromLTRB(0.0, Dimens.appBarLeftPadding, 0.0,
                    Dimens.appBarLeftPadding),
              ),
            )),
        preferredSize: Size.fromHeight(Dimens.appBarHeight));
  }
}
